var should = require('should');
var fightPowerHandler = require('../../../app/servers/user/handler/fightPowerHandler.js');
var config = require('../../config');
var configUtil = require('../../../app/util/configUtil');
var analyze = require('kc-analyze');
var buildModel = require('../../../app/models/buildModel');
var buildType = require('../../../app/consts/buildType');

suite('测试fightPowerHandler', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    suite('call refresh()', function () {
        test('刷新战力', function (done) {
            var msg = {};
            msg.tech_id = 101;
            var session = {};
            session.uid = config.role_id;

            var fight_power_handler = new fightPowerHandler();
            fight_power_handler.refresh(msg, session, function (err, res) {
                //console.log("res:", res);
                done();
            });
        });
    });
});
